"""
@file:   celery_t.py
@author: Shuai
@date:   2020/06/30
"""
from celery import Celery
from server import app

# 配置celery
app.config['CELERY_BROKER_URL'] = 'redis://101.200.220.23:6379/0'
app.config['CELERY_RESULT_BACKEND'] = 'redis://101.200.220.23:6379/1'
#
celery_r = Celery(app.name, broker=app.config['CELERY_BROKER_URL'],
                  backend=app.config['CELERY_RESULT_BACKEND'], include=['celery_task.task'])
